<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML>
<HEAD>
   <TITLE>int pblHtInsert</TITLE>
   <META NAME="GENERATOR" CONTENT="DOC++ 3.4.9">
</HEAD>
 <center>
<H2>Program Base Library Functions</H2>
</center>

<H2>int <A HREF="#DOC.DOCU">pblHtInsert</A></H2><H2>( <!1><A HREF="pblHashTable_t.html">pblHashTable_t</A>*  h,   void*  key,   size_t keylen,<BR>&nbsp;  void*  dataptr )</H2><BLOCKQUOTE> insert a key / data pair into a hash table</BLOCKQUOTE>

<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>
insert a key / data pair into a hash table

<P>only the pointer to the data is stored in the hash table
no space is malloced for the data!

<P></BLOCKQUOTE>
<DL><DT><DT><B>Parameters:</B><DD><B>h</B> -   hash table to insert to             
<BR><B>key</B> -   key to insert                       
<BR><B>keylen</B> -   length of that key                  
<BR><B>dataptr</B> -   dataptr to insert                   <BR><DT><B>Returns:</B><DD>  int ret == 0: ok
<BR>  int ret == -1: an error, see pbl_errno:
<BR>  PBL_ERROR_EXISTS:        an item with the same key already exists
<BR>  PBL_ERROR_OUT_OF_MEMORY: out of memory
<BR><DD></DL><P><P><I><A HREF="index.html">Alphabetic index</A></I></P><HR>
<BR>
This page was generated with the help of <A HREF="http://docpp.sourceforge.net">DOC++</A>.
</BODY>
</HTML>
